from re import A
from tracemalloc import start
import numpy as np
import scipy.io as sio
import time

# per_dict = np.load("output_dir/per_dict.npy", allow_pickle=True).item()
# cla_dict = np.load("output_dir/cla_dict.npy", allow_pickle=True).item()
# lib_dict = np.load("output_dir/lib_dict.npy", allow_pickle=True).item()
# int_dict = np.load("output_dir/int_dict.npy", allow_pickle=True).item()
# met_dict = np.load("output_dir/met_dict.npy", allow_pickle=True).item()
eye = np.eye(5, dtype=bool)
apk_list_and_label = sio.loadmat("output_dir/apk_list_and_label.mat")
apk_feature_list_lib = sio.loadmat("output_dir/apk_feature_list_lib.mat")
apk_graph_lib = sio.loadmat("output_dir/apk_graph_lib.mat")
apk_graph = sio.loadmat("output_dir/apk_graph.mat")

apk_feature_list_lib = apk_feature_list_lib["apk_feature_list_lib"].toarray()
apk_graph_lib = apk_graph_lib["library_graph"].toarray()
apk_graph_cla = apk_graph["class_graph"].toarray()
print(1)

# start_time = time.time()
# a = [1, 1, 0]
# b = [0, 0, 1]

# a = np.array(a, dtype=bool)
# b = np.array(b, dtype=bool)

# per_vector = []
# per_vector.append(a)
# per_vector.append(b)

# per_vector = np.array(per_vector, dtype=bool)
# stop_time = time.time()
# print(start_time, stop_time)

# print(1)

# d = {"goo": 0, "foo": 1, "bar": 2}
# with open("./output_dir/per_dict.txt", 'w') as f:
#     for i in d.items():
#         f.write(str(i)+'\n')

# apk_list = sio.loadmat("./output_dir/apk_list_and_label.mat")
# apk_list = apk_list["apk_path_list"].tolist()
print(1)





